<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>

<form action="<?php echo url_for('descripcionesgenerales/' . ($form->getObject()->isNew() ? 'create' : 'update') . (!$form->getObject()->isNew() ? '?id_dg=' . $form->getObject()->getIdDg() : '')) ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
    <?php if (!$form->getObject()->isNew()): ?>
        <input type="hidden" name="sf_method" value="put" />
    <?php endif; ?>
    <div id="formularioproyectos" align="center"><br>
        <table>
            <tfoot>
                <tr>
                    <td><br>

                        <div align="center"><button class="buttonmediumauto button-green"><div id="imagenes" valign="middle"><div class="spritesguardar" id="guardar_jpg" align="center"></div></div><div id="textobutton2">Guardar Descripci&oacute;n</div></button></div>
                    </td>
                    <td><br>
                        &nbsp;<a href="<?php echo url_for('descripcionesgenerales/index?id_tp=' . $this->user = sfContext::getInstance()->getUser()->getAttribute('id_tp') .'&id_pro='.$this->user = sfContext::getInstance()->getUser()->getAttribute('id_pro')) ?>"><button class="buttonmedium button-green"><div id="imagenes" valign="middle"><div class="spritesatrasmall" id="atrasmall_jpg" align="center"></div></div><div id="textobutton2">Regresar</div></button></a>

                    </td>
                </tr>
            </tfoot>
            <tbody>
                <?php echo $form ?>
            </tbody>
        </table>
    </div>
</form>
